<script type="text/html" id="operation">
    <a class="layui-btn layui-btn-sm" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-sm" lay-event="del">删除</a>
</script>
<script type="text/html" id="operation_only_edit">
    <a class="layui-btn layui-btn-sm" lay-event="edit">编辑</a>
</script>